﻿using NewWms.Apiservice;
using Prism.Commands;
using Prism.Mvvm;
using Prism.Regions;

namespace NewWms.ViewModels
{
    public class MaterialViewModel : BindableBase, INavigationAware
    {

        private readonly  IBaseService_Client baseService;
        private readonly  IViewService_Client viewService;
        public MaterialViewModel() 
        {
         baseService = new BaseService_Client();
         viewService = new ViewService_Client();
            Command = new DelegateCommand<string>(Method);
        }
        public DelegateCommand<string> Command { get; set; }
        public void Method(string obj)
        {
            switch (obj)
            {
                case "ViewBox":  break;
                case "View_BoxGrid_Material":  break;
                case "DeleteBoxs":  break;
            }
        }










        //主页设置
        private string title= "物料信息";
        public string Title
        {
            get { return title; }
            set { title = value; RaisePropertyChanged(); }
        }
        public bool IsNavigationTarget(NavigationContext navigationContext)
        {
            return true;
        }
        public void OnNavigatedFrom(NavigationContext navigationContext)
        {

        }
        public void OnNavigatedTo(NavigationContext navigationContext)
        {

        }
    }
}
